﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="PersianCalendarControl.MiniCalendarButton"
	d:DesignWidth="640" d:DesignHeight="480" Width="25" Height="25">
	<UserControl.Resources>
		<Style x:Key="MiniCalendarButtonStyle" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid x:Name="LayoutRoot">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Grid>
								<Rectangle x:Name="rectangle" Stroke="#FF3B3B3B" Height="25" VerticalAlignment="Top" >
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="#FFCECECE" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
							</Grid>
							<Grid x:Name="grid" Opacity="0">
								<Rectangle x:Name="rectangle2" Stroke="#FFB8B8B8" Height="25" VerticalAlignment="Top" >
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFE7E7E7"/>
											<GradientStop Color="#FF9D9D9D" Offset="0.812"/>
											<GradientStop Color="#FF838383" Offset="0.51"/>
											<GradientStop Color="#6DAEC9FF" Offset="0.952"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle x:Name="rectangle3" Margin="0,11,0,0" Opacity="0.88" Height="14" VerticalAlignment="Top" >
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#6D454545" Offset="1"/>
											<GradientStop Color="#FF646464"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
							</Grid>
							<Rectangle Margin="1" Stroke="White">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFAFCFD"/>
										<GradientStop Color="#FFA3C4D8" Offset="0.511"/>
										<GradientStop Color="#FFF1FAFF" Offset="0.51"/>
										<GradientStop Color="#FFDDEFFB" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Grid Margin="8,6,8,7">
								<Grid.RowDefinitions>
									<RowDefinition Height="0.333*"/>
									<RowDefinition Height="0.323*"/>
									<RowDefinition Height="0.344*"/>
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="0.319*"/>
									<ColumnDefinition Width="0.347*"/>
									<ColumnDefinition Width="0.333*"/>
								</Grid.ColumnDefinitions>
								<Rectangle Stroke="Black" Margin="-1,1,-1,-1">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Grid.Column="1" Margin="-1,1,-1,-1">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Grid.Column="2" Margin="0,1,-1,-1">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Margin="-1,0" Grid.Row="1">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Grid.Column="1" Margin="-1,0" Grid.Row="1">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Grid.Column="2" Margin="0,0,-1,0" Grid.Row="1">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Margin="-1,-1,-1,1" Grid.Row="2">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Grid.Column="1" Margin="-1,-1,-1,1" Grid.Row="2">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Stroke="Black" Grid.Column="2" Margin="0,-1,-1,1" Grid.Row="2">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFF9F9F9"/>
											<GradientStop Color="#FFAEAEAE" Offset="0.511"/>
											<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
											<GradientStop Color="White" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
							</Grid>
							<ContentPresenter>
								<Path Data="M8,18 L19.13623,18" Height="1" Margin="6.5,0,6.364,7" Stretch="Fill" Stroke="White" UseLayoutRounding="False" VerticalAlignment="Bottom"/>
							</ContentPresenter>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
    <Grid>
        <Button  Style="{StaticResource MiniCalendarButtonStyle}"/>
        <TextBlock Height="25" HorizontalAlignment="Left" Name="btnToCalendar" Text="" VerticalAlignment="Top" Width="25" />
        
    </Grid>
</UserControl>